<include file="Public/min-header" />
<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content" style="padding:0px 15px;">
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-body ">
                    <ul class="nav nav-tabs">
                        <foreach name="groupList" item="vo" key="k">
                            <li <if condition="$k eq 'glass'">class="active"</if>><a href="javascript:;" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                        </foreach>
                    </ul>
                    <form method="post" id="handlepost" action="{:U('System/handle')}">
                        <div class="tab-content" style="padding:20px 0px;">
                            <div class="tab-pane active" id="tab_tongyong">
                                <table class="table table-bordered">
                                    <tbody>
                                        <tr>
                                            <td class="col-sm-2">1.51(较薄) 标签词：</td>
                                            <td class="col-sm-8">
                                                <input type="text" class="form-control" name="refraction_one" value="{$config.refraction_one|default='1.51(较薄)'}">
                                                <span id="err_attr_name" style="color:#F00; display:none;"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="col-sm-2">1.64(超薄) 标签词：</td>
                                            <td class="col-sm-8">
                                                <input type="text" class="form-control" name="refraction_two" value="{$config.refraction_two|default='1.64(超薄)'}">
                                                <span id="err_attr_name" style="color:#F00; display:none;"></span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>左右眼度数在-5.00以上的价格加收费：</td>
                                            <td>
                                                <input type="number" pattern="^\d{1,}$" title="只能输入数字" class="input-sm" name="plus_charge_one" value="{$config.plus_charge_one|default='200'}">元
                                            </td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>其中一只眼在-5.00以下的价格加收费：</td>
                                            <td>
                                                <input type="number" pattern="^\d{1,}$" title="只能输入数字" class="input-sm" name="plus_charge_two" value="{$config.plus_charge_two|default='400'}">元
                                            </td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                            <td>其中一只眼有散光的价格加收费：</td>
                                            <td>
                                                <input type="number" pattern="^\d{1,}$" title="只能输入数字" class="input-sm" name="plus_charge_three" value="{$config.plus_charge_three|default='200'}">元
                                            </td>
                                            <td></td>
                                        </tr>
                                    </tbody>
                                    <tfoot>
                                        <tr>
                                            <td>
                                                <input type="hidden" name="inc_type" value="{$inc_type}">
                                            </td>
                                            <td class="text-right">
                                                <input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存">
                                            </td>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit() {
        /*
         var site_url = $('input[name="site_url"]').val();  
         var urlReg = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\w \.-]*)*$/;  
         if(!urlReg.exec(site_url))
         {
         alert('网站域名格式必须是 http://www.xxx.com'); 
         return false;
         }
         */
        $('#handlepost').submit();
    }

    $(document).ready(function () {
//        get_province();
    });

    function goset(obj) {
        window.location.href = $(obj).attr('data-url');
    }
</script>
</body>

</html>
